<?php
session_start();
include_once("connexion.php");
include('menu.php');

if ( !isset($_SESSION["user_id"])) { //vérifie si on est connecté pour afficher la page
    header("location:login.php");
}

$query =" SELECT l.location_id, l.location_couv, l.location_surface, l.location_tarifh, l.location_tarifj, l.location_voie, l.location_desc, l.location_dated, l.location_datef, v.ville_nom, p.nom_pays FROM location l JOIN ville v ON l.ville_id = v.ville_id JOIN pays p ON v.pays_id = p.pays_id WHERE user_id = ".$_SESSION['user_id']." ";
$bienList = mysqli_query($connexion, $query);



include('user_bien.html');




?>
